import req from '@/lib/axios'
const $API = '/api'

//获取用户详情
const GetUserInfo = data => req.post(
  `${$API}/person/info`,
  data
);

//修改用户资料
const editUserInfo = data => req.post(
  `${$API}/person/editInfo`,
  data
);

//分页消息列表
const pagingMessage = data => req.post(
  `${$API}/person/pagingMessage`,
  data
);

//设置星标
const setStar = data => req.post(
  `${$API}/person/setStar`,
  data
);

export default {
  GetUserInfo,
  editUserInfo,
  pagingMessage,
  setStar,
}